<template>
  <div class="footer">
    <div class="footer_top">
      <div class="container">
        <div class="row">
          <div class="row_title" style="font-size: 28px">分形者跟单社区</div>
          <div class="row_email">
            <input type="text" placeholder="Enter your email" />
            <div class="row_email_box">
              <i class="el-icon-message"></i>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="row_title">快捷链接</div>
          <div class="row_email_list " @click="login(item.path)" v-for="(item, index) in list" :key="index">
            <div>{{item.name}}</div>
          </div>
        </div>
        <div class="row">
          <div class="row_title">服务支持</div>
          <div class="row_email_list" @click="onHandler(item.path)" v-for="(item, index) in handler" :key="index">
          <div>
            {{item.name}}
          </div>
          </div>
        </div>
        <div class="row">
          <div class="row_title">联系我们</div>
          <div class="row_email_list" @click="toMessage">
            <div>在线客服</div>
          </div>
        </div>
      </div>
    </div>
    <div class="footer_copyright">
      <div class="container">
        Copyright © All Rights By
        <a href="https://www.baidu.com/" target="_blank" style="margin-left: 5px"
          >fractaller</a
        >
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'BottomMenu',
  data () {
    return {
      list: [
        {
          name: '登录',
          path: '/user/login'
        },

        {
          name: '注册',
          path: '/user/register'
        },
        {
          name: '绑定账户',
          path: ''
        },
        {
          name: '支持的经销商',
          path: ''
        }
      ],
      handler: [
        {
          name: '关于我们',
          path: 'regard'
        },
        {
          name: '帮助中心',
          path: 'help'
        },
        {
          name: '用户协议',
          path: '#'
        }
      ]
    }
  },
  methods: {
    login (path) {
      this.$router.push(path)
    },
    onHandler (path) {
      this.$router.push(path)
    },
    toMessage () {
      this.$router.push('/')
    }
  }
}
</script>

<style scoped lang="scss">
.footer {
  padding: 0px;
 // margin-top: 5rem;
  background: #002748;
  position: relative;
  .footer_top {
    background: rgb(0, 39, 72);
    padding: 95px 0 70px;
    box-sizing: border-box;
    .container {
      width: 1170px;
      margin: 0 auto;
      padding-right: 15px;
      padding-left: 15px;
      display: flex;
      flex-wrap: wrap;
      .row {
        width: 25%;
        text-align: left;
        padding-right: 15px;
        padding-left: 15px;
        box-sizing: border-box;
        .row_title {
          font-size: 24px;
          margin-bottom: 35px;
          color: #fff;
          font-weight: bold;
        }
        .row_email {
          margin-top: 30px;
          display: flex;
          background-color: #fff;
          position: relative;
          border-radius: 40px;
          position: relative;
          overflow: hidden;
          & > input {
            display: block;
            width: 100%;
            height: 56px;
            padding: 0.375rem 0.75rem;
            font-size: 1rem;
            font-weight: 400;
            line-height: 1.5;
            color: #495057;
            background-color: #fff;
            background-clip: padding-box;
            border: 1px solid #ced4da;
            border-radius: 0.25rem;
            transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
            padding-left: 20px;
            border: 1px solid transparent;
            outline: none;
          }
          .row_email_box {
            position: absolute;
            content: "";
            right: 0;
            top: 0;
            width: 78px;
            height: 56px;
            line-height: 54px;
            background: #0487f9;
            color: #fff;
            text-align: center;
            border-radius: 29px;
            font-size: 22px;
          }
        }
        .row_email_list {
            margin-bottom: 20px;
            color: #bab3cf;
            cursor: pointer;
          & > div :hover {
            padding-left: 10px;
            color: #ffffff;
            transition: all 0.3s ease 0s;
          }
        }
      }
    }
  }
  .footer_copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(186, 179, 207, 0.25);
    .container {
      width: 1170px;
      margin: 0 auto;
      padding-right: 15px;
      padding-left: 15px;
      display: flex;
      flex-wrap: wrap;
      color: #bab3cf;
      & > a {
        color: #2f2e41;
        outline: none;
        text-decoration: none;
        transition: all 0.3s ease 0s;
      }
      & > a:hover {
        color: #0487f9;
      }
    }
  }
}
</style>
